package cn.micro.system.manage.entity;
import cn.micro.system.manage.common.vaildate.ValidateGroup;
import cn.micro.system.manage.entity.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 岗位信息表
 * </p>
 *
 * @author wr
 * @since 2023-12-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysDimPosition extends BaseEntity {

    private static final long serialVersionUID = 1L;


    /**
     * 岗位编码
     */
    @NotEmpty(message = "岗位编码不能为空",groups = ValidateGroup.add.class)
    private String code;

    /**
     * 岗位名称
     */
    @NotEmpty(message = "岗位名称不能为空",groups = ValidateGroup.add.class)
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 状态（1正常 0停用）
     */
    private Integer status;

    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空",groups = ValidateGroup.add.class)
    private String deptId;

    @TableField(exist = false)
    private String deptName;


    public static final String ID = "id";

    public static final String CODE = "code";

    public static final String NAME = "name";

    public static final String DESCRIPTION = "description";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String IS_DELETED = "is_deleted";

}
